#include <iostream>

using namespace std;

class B0
{
public:
	int nv;
	void fun()
	{
		cout << "Member of B0 " << endl;
	}
};

class B1:virtual public B0
{
public :
	int nv1;
};

class B2:virtual public B0
{
public:
	int nv2;
};

class D1:public B1, public B2
{
public:
	int nvd;
	void fun()
	{
		cout << "Member of D1" << endl;
	}
};

int main()
{
	D1 dl;
	dl.nv = 2;
	dl.fun();

	B0 b;
	b.fun();

	return 0;
}
